package com.thesis.service.impl;

import com.github.pagehelper.Page;
import com.thesis.dao.SysNoticeMapper;
import com.thesis.entity.SysNotice;
import com.thesis.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Anvy at 2020/4/17.
 */
@Service("noticeService")
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private SysNoticeMapper noticeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return noticeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysNotice record) {
        return noticeMapper.insert(record);
    }

    @Override
    public int insertSelective(SysNotice record) {
        return noticeMapper.insertSelective(record);
    }

    @Override
    public SysNotice selectByPrimaryKey(Long id) {
        return noticeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysNotice record) {
        return noticeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(SysNotice record) {
        return noticeMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(SysNotice record) {
        return noticeMapper.updateByPrimaryKey(record);
    }

    @Override
    public Page<SysNotice> findPageList(SysNotice record) {
        return noticeMapper.findPageList(record);
    }

    @Override
    public Page<SysNotice> findPageListByVague(SysNotice queryParam, String vagueParam) {
        return noticeMapper.findPageListByVague(queryParam,vagueParam);
    }

    @Override
    public Integer deleteBatchByIds(List<Integer> idList) {
        return noticeMapper.deleteBatchByIds(idList);
    }
}
